package br.com.amadeus.android.entities;

import java.util.Date;

public class Message implements Comparable<Message>{
	
	private int id;
	private String body;
	private Date date;
	private String personName;
	private Forum forum;
	private int amadeus_id;
	private int person_id;
	//propriedade para recuperar foto do autor da mensagem pelo WS
	private String personLogin;
	
	public Message() {
		
	}

	public Message(int id) {
		super();
		this.id = id;
	}

	public Message(int id, String body, Date date, String personName,
			Forum forum, int amadeus_id, String personLogin) {
		super();
		this.id = id;
		this.body = body;
		this.date = date;
		this.personName = personName;
		this.forum = forum;
		this.amadeus_id = amadeus_id;
		this.personLogin = personLogin;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}


	public String getPersonName() {
		return personName;
	}

	public void setPersonName(String personName) {
		this.personName = personName;
	}

	public Forum getForum() {
		return forum;
	}

	public void setForum(Forum forum) {
		this.forum = forum;
	}

	public int getAmadeus_id() {
		return amadeus_id;
	}

	public void setAmadeus_id(int amadeus_id) {
		this.amadeus_id = amadeus_id;
	}

	public int getPerson_id() {
		return person_id;
	}

	public void setPerson_id(int person_id) {
		this.person_id = person_id;
	}
	
	public String getPersonLogin() {
		return personLogin;
	}

	public void setPersonLogin(String personLogin) {
		this.personLogin = personLogin;
	}

	public int compareTo(Message m) {
		return Integer.toString(this.amadeus_id).compareTo(Integer.toString(m.getAmadeus_id()));
	}
	

}
